package com.lt.experiment04.mission04;

/**
 * @author LT
 * @version 1.0
 * @PackageName com.lt.experiment04.mission04
 * @ClassName Vibrate
 * @Description to do
 * @date 2021/11/2 11:43
 */
public class JarPhone extends PhoneDecorator {
    Phone p;

    public JarPhone(Phone p) {
        this.p = p;
    }

    @Override
    public void receiveCall() {
        p.receiveCall();
        vibrate();
    }

    private void vibrate() {
        System.out.println("震动");
    }
}
